using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Game;

public class ClickGUI:MonoBehaviour {
    UsersOperation action;
    figureControllor figureCon;
    public void setCon(figureControllor newFigureCon) {
        figureCon = newFigureCon;
    }
    void Start() {
        action = Director.getInstance ().currentSceneController as UsersOperation;
    }
        void OnMouseDown() {
            if (gameObject.name == "boat") {
                action.moveBoat();
            } else {
                action.figureClicked(figureCon);
            }
        }
    
}